package com.thf.controller;

import com.thf.model.TopFootModels;
import com.thf.service.TopFootService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
public class TopFootController {
    @Resource
    private TopFootService topFootService ;

    @RequestMapping("/topfoot")
    public List<TopFootModels> findAndPage(){
        List<TopFootModels> list = topFootService.list();
        return list;
    }
}
